package org.jeecg.modules.charge.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.common.util.StringUtils;
import org.jeecg.modules.charge.mapper.ChargeCollectMapper;
import org.jeecg.modules.charge.service.IChargeCollectService;
import org.jeecg.modules.charge.vo.ChargeCollect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Calendar;

/**
 * @Description: 战图收缴率
 * @Author: Lee
 * @Date:   2019-08-22
 * @Version: V1.0
 */
@Service
public class ChargeCollectServiceImpl extends ServiceImpl<ChargeCollectMapper, ChargeCollect> implements IChargeCollectService {
    @Autowired
    private ChargeCollectMapper  chargeCollectMapper;

    @Override
    public Double getYearShouldMoney(String cny, String projectId) {
        Double shouldMoney=chargeCollectMapper.getYearShouldMoney(cny,projectId);
        return shouldMoney;
    }

    @Override
    public Double getYearRealMoney(String cny, String projectId) {
        Double realMoney=chargeCollectMapper.getYearRealMoney(cny,projectId);
        return realMoney;
    }
}
